package ae.pcfc.etks.online.common.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TTscClientRole entity. @author Mohtisham.Salahria
 */
@Entity
@Table(name = "T_TSC_CLIENT_ROLE", schema = "TSC_RW")
public class TTscClientRole implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String crId;
	private String crDesc;
	private String crDescArb;
	private String crCategory;
	private String crStatus;
	private String crCreateduser;
	private Date crCreatedtime;
	private String crModifieduser;
	private Date crModifiedtime;

	// Constructors

	/** default constructor */
	public TTscClientRole() {
	}

	/** full constructor */
	public TTscClientRole(String crDesc, String crDescArb, String crCategory, String crStatus, String crCreateduser,
			Date crCreatedtime, String crModifieduser, Date crModifiedtime) {
		this.crDesc = crDesc;
		this.crDescArb = crDescArb;
		this.crCategory = crCategory;
		this.crStatus = crStatus;
		this.crCreateduser = crCreateduser;
		this.crCreatedtime = crCreatedtime;
		this.crModifieduser = crModifieduser;
		this.crModifiedtime = crModifiedtime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "CR_ID", unique = true, nullable = false, length = 10)
	public String getCrId() {
		return this.crId;
	}

	public void setCrId(String crId) {
		this.crId = crId;
	}

	@Column(name = "CR_DESC", nullable = false, length = 120)
	public String getCrDesc() {
		return this.crDesc;
	}

	public void setCrDesc(String crDesc) {
		this.crDesc = crDesc;
	}

	@Column(name = "CR_DESC_ARB", nullable = false, length = 120)
	public String getCrDescArb() {
		return this.crDescArb;
	}

	public void setCrDescArb(String crDescArb) {
		this.crDescArb = crDescArb;
	}

	@Column(name = "CR_CATEGORY", nullable = false, length = 1)
	public String getCrCategory() {
		return this.crCategory;
	}

	public void setCrCategory(String crCategory) {
		this.crCategory = crCategory;
	}

	@Column(name = "CR_STATUS", nullable = false, length = 1)
	public String getCrStatus() {
		return this.crStatus;
	}

	public void setCrStatus(String crStatus) {
		this.crStatus = crStatus;
	}

	@Column(name = "CR_CREATEDUSER", nullable = false, length = 30)
	public String getCrCreateduser() {
		return this.crCreateduser;
	}

	public void setCrCreateduser(String crCreateduser) {
		this.crCreateduser = crCreateduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CR_CREATEDTIME", nullable = false, length = 7)
	public Date getCrCreatedtime() {
		return this.crCreatedtime;
	}

	public void setCrCreatedtime(Date crCreatedtime) {
		this.crCreatedtime = crCreatedtime;
	}

	@Column(name = "CR_MODIFIEDUSER", nullable = false, length = 30)
	public String getCrModifieduser() {
		return this.crModifieduser;
	}

	public void setCrModifieduser(String crModifieduser) {
		this.crModifieduser = crModifieduser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CR_MODIFIEDTIME", nullable = false, length = 7)
	public Date getCrModifiedtime() {
		return this.crModifiedtime;
	}

	public void setCrModifiedtime(Date crModifiedtime) {
		this.crModifiedtime = crModifiedtime;
	}

}